/* eslint-disable */
/**
 * Created by GYL on 2018/8/24
 */
import React, { Component } from 'react';
import { Tabs, Icon, Select, Input, Tooltip, Form, Row, Col, TreeSelect, DatePicker, message } from 'antd';
import styles from './EventPosting.less';
import File from './tab/File';
import RoleList from './tab/RoleList';
import ProjectRoles from './tab/ProjectRoles';
import SystemRoles from './tab/SystemRoles';
import LayerRoles from './tab/LayerRoles';
import RemindSet from './tab/RemindSet';
const TabPane = Tabs.TabPane;
class System extends Component {

    constructor(props) {
        super(props)

    }



    state = {

    };

    renderTreeNodes = data =>
        data.map(item => {
            if (item.children) {
                return (
                    <TreeNode title={item.title} key={item.key} dataRef={item}>
                        {this.renderTreeNodes(item.children)}
                    </TreeNode>
                );
            }
            return <TreeNode key={item.key} {...item} />;
        });

    render() {
        let t = this
        let width = document.body.clientWidth;
        const height = document.body.clientHeight;
        let containerHeight = '76vh';
        let tableHeight = 310;
        if (width > 1367) {
            tableHeight = 380;
            containerHeight = '79vh';
        }

        return (

            <div className={styles.box}>

                <Tabs defaultActiveKey="1" size="small" >
                    <TabPane tab="文件目录设置" key="1" >
                        <File />

                    </TabPane>
                    <TabPane tab="用户权限设置" key="2">
                        <RoleList />

                    </TabPane>
                    <TabPane tab="项目角色设置" key="3">
                        <ProjectRoles />


                    </TabPane>
                    <TabPane tab="系统角色设置" key="4">
                        <SystemRoles />

                    </TabPane>
                    <TabPane tab="管理层设置" key="5">
                    <LayerRoles />

                    </TabPane>
                    <TabPane tab="提醒设置" key="6">
                    <RemindSet />

                    </TabPane>

                </Tabs>
            </div>
        );


    }
}
export default System;

